package exercise;

public class Test1 {

    public static void main2(String[] args) {
        // 基本数据类型，赋值为值拷贝
        int n1 = 10;
        int n2 = n1;
        n2 = 30;

        // 引用数据类型，赋值为地址，引用传递
        int[] ints1 = {1,2,3};
        int[] ints2 = ints1;
        ints2[0] = 23;
    }

    public static void main1(String[] args) {
        char[] chars = new char[26];
        for (int i = 0; i < chars.length; i++) {
            chars[i] = (char) ('A'+i);
        }
    }
}
